package com.city.repository.report;

import com.city.domain.report.CtCropland;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: 李顺时
 * @Description:
 * @Date: Create in 14:54 2018/9/7
 * @Modified By:
 * */


@Repository
public interface CtCroplandRepository extends JpaRepository<CtCropland,Integer> {

    @Query(value = "select * from ct_cropland where gatherer_name = ?1",nativeQuery = true)
    List<CtCropland> findAllByGathererName(String name);
}
